#include <stdlib.h>
#include <stdio.h>
#include <SDL.h>
#include <SDL_image.h>
#include <time.h>
#include "main.h"

int main(int argc, char **argv)
{

    long continuer=1, choix, charger =0;

    SDL_Surface *ecran = NULL;
    SDL_Rect positionFond;

    positionFond.x = 0;
    positionFond.y = 0;

    SDL_Init(SDL_INIT_VIDEO);

    SDL_ShowCursor(SDL_DISABLE);

    ecran = SDL_SetVideoMode(256, 223, 32, SDL_HWSURFACE |  SDL_DOUBLEBUF | SDL_FULLSCREEN);
    SDL_WM_SetCaption("Mario par Gregouar", NULL);

    while(continuer)
    {
    choix=Menu(ecran);
    if(choix==0)
    Jouer(ecran,0);
    else if(choix==1)
    Jouer(ecran,1);
    else if(choix==2)
    continuer=0;

    }

    SDL_FreeSurface(ecran);

    SDL_Quit();

    return EXIT_SUCCESS;

}


